﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Data;

namespace AspNetCs.IDAL
{
    public interface ITemple
    {
        int Add(Temple_Model model);
        int delete(string filter);
        int Update(Temple_Model model);
        Temple_Model GetModel(DataRow dr);
        DataTable GetDataTable(string filter);
        /// <summary>
        /// 根据表名查询当前表中所有字段
        /// </summary>
        /// <param name="TbName"></param>
        /// <returns></returns>
        DataTable GetTableColumn(string TbName);

        /// <summary>
        /// 根据表名查询当前表中数据
        /// </summary>
        /// <param name="TbName"></param>
        /// <returns></returns>
        DataTable GetTableColumn(string TbName,string filter);
    }
}
